import request from '@/utils/request'

// 查询调度值班列表
export function listOnDutyReport(query) {
  return request({
    url: '/dispatch/onDutyReport/list',
    method: 'get',
    params: query
  })
}

// 查询调度值班详细
export function getOnDutyReport(dutyId) {
  return request({
    url: '/dispatch/onDutyReport/' + dutyId,
    method: 'get'
  })
}

// 新增调度值班
export function addOnDutyReport(data) {
  return request({
    url: '/dispatch/onDutyReport',
    method: 'post',
    data: data
  })
}

// 修改调度值班
export function updateOnDutyReport(data) {
  return request({
    url: '/dispatch/onDutyReport',
    method: 'put',
    data: data
  })
}

// 删除调度值班
export function delOnDutyReport(dutyId) {
  return request({
    url: '/dispatch/onDutyReport/' + dutyId,
    method: 'delete'
  })
}
